package io;

import java.io.*;

/**
 *缓冲字符输入流读取文本数据
 */
public class BRDemo {
    public static void main(String[] args) throws IOException {
        FileInputStream fis=new FileInputStream("fos.txt");//文件流
        InputStreamReader isr=new InputStreamReader(fis);//转换流
        BufferedReader br=new BufferedReader(isr);//加个BUFF
        String line;
        while ((line=br.readLine())!=null){
            System.out.println(line);
        }br.close();
    }
}
